(function(t){"use strict";if(!window.DOMRect||typeof DOMRect.prototype.toJSON!=="function"||typeof DOMRect.fromRect!=="function"){window.DOMRect=function(){function t(i,e,h,n){babelHelpers.classCallCheck(this,t);this.x=i||0;this.y=e||0;this.width=h||0;this.height=n||0}babelHelpers.createClass(t,[{key:"toJSON",value:function t(){return{top:this.top,left:this.left,right:this.right,bottom:this.bottom,width:this.width,height:this.height,x:this.x,y:this.y}}},{key:"top",get:function t(){return this.y}},{key:"left",get:function t(){return this.x}},{key:"right",get:function t(){return this.x+this.width}},{key:"bottom",get:function t(){return this.y+this.height}}],[{key:"fromRect",value:function i(e){return new t(e.x,e.y,e.width,e.height)}}]);return t}()}})(this.window=this.window||{});
//# sourceMappingURL=domrect.bundle.map.js